﻿#region Copyright Information
// // ****************************************************************
// // Feel free to extend or modify the code of the application to your needs. 
// // But remember do it for the Glory of our Lord Jesus Christ
// // ****************************************************************
#endregion
#region Copyright Information

using System.Configuration;

#endregion

namespace Services.AppConfig
{
	/// <summary>
	/// Manages the section used for persisting screen information.
	/// </summary>
	public class ScreenSection : ConfigurationSection
	{
        /// <summary>
        /// Override IsReadOnly property from <see cref="ConfigurationSection"/>.
        /// </summary>
        /// <returns></returns>
		public override bool IsReadOnly()
		{
			return false;
		}

		/// <summary>
		/// Holds the screen name.
		/// </summary>
		[ConfigurationProperty("screenName", DefaultValue = "primary", IsRequired = true)]
		public string ScreenName
		{
			get
			{
				return (string)this["screenName"];
			}
			set
			{
				this["screenName"] = value;
			}
		}
	}
}
